package test.util;

public class ConstantCollection {
	public static final int STATUS_INFO= 0;
	public static final int STATUS_UNCHECKED = 1;
	public static final int STATUS_DONE = 2;
	public static final int STATUS_PASS = 3;
	public static final int STATUS_WARNING = 4;
	public static final int STATUS_ERROR = 5;
	public static final int STATUS_FAIL = 6;
	public static final int STATUS_FATAL_ERROR = 7;

	/**
	 * Specified the maximum size of  the HTML log file 
	 * (new log file is created each time this value is exceeded).
	 */
	public static final int LOG_SWAP_SIZE = 128000;
	
	public static final String getStatusName(Integer i) {
		String result;
		switch(i) {
		case STATUS_INFO: 
			result = "INFO"; 
			break;
		case STATUS_UNCHECKED:
			result = "UNCHECKED"; 
			break;
		case STATUS_DONE: 
			result = "DONE"; 
			break;
		case STATUS_PASS: 
			result = "PASS";
			break;
		case STATUS_WARNING:
			result = "WARNING";
			break;
		case STATUS_ERROR: 
			result = "ERROR";
			break;
		case STATUS_FAIL:
			result = "FAIL"; 
			break;
		case STATUS_FATAL_ERROR: 
			result = "FATAL_ERROR"; 
			break;
		default:
			result = "WARNING";
			break;
		}
		return result;
	}
}
